﻿using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class StartScene : MonoBehaviour
{

   

    //Rigidbody rig;
    void Start()
    {

    
    }

    void Update()
    {


    }

    void OnGUI()
    {
        if (GUI.Button(new Rect((Screen.width - 400) / 2, (Screen.height - 200) / 2,200,200),"进入游戏"))
        {
            //切换场景
            //Application.LoadLevel("guanka");
            SceneManager.LoadScene("guanka");
        }

        if (GUI.Button(new Rect((Screen.width - 400) / 2+200, (Screen.height - 200) / 2, 200, 200), "退出游戏"))
        {
            //退出游戏
            Application.Quit();
            //SceneManager.LoadScene("guanka");
        }
    }


 
}
